//
//  RefreshGifHeader.swift
//  RxDemo
//
//  Created by MAC on 2019/5/28.
//  Copyright © 2019 zk. All rights reserved.
//
import UIKit
import MJRefresh

class RefreshGifHeader: MJRefreshGifHeader {
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        //自定义Gif图的位置
        self.stateLabel.isHidden = false
        self.lastUpdatedTimeLabel.isHidden = true
        self.gifView.contentMode = .center
        self.mj_h = 80
        self.gifView.mj_w = self.mj_w
        self.gifView.top = self.top + 80
        self.gifView.height = self.mj_h - 60.0
        self.stateLabel.top = self.gifView.bottom
    }
}
